export const trucksRules =  {
  'header_license_vo.number':[
    { required: true, message: '请输入车牌号', trigger: 'blur' },
    // { pattern:/[A-Za-z]{1}[A-Za-z0-9]{5}$/, message: "请输入正确车牌号", trigger: "blur" },
    // {min:6,max:6, message: "请输入正确车牌号df", trigger: "blur" },

  ],
  'header_license_vo.province': [
    { required: true, message: '请选择省份简称', trigger: 'change' }
  ],
  'tail_license_vo.number':[
    { message: '请输入车牌号', trigger: 'blur' },
    { pattern:/[A-Za-z]{1}[A-Za-z0-9]{4}[挂]{1}$/, message: "请输入正确车牌号", trigger: "blur" },
    {min:6,max:6, message: "请输入正确车牌号df", trigger: "blur" },
  
  ],
  'tail_license_vo.province':[
    { message: '请输入车牌号', trigger: 'change' },
  
  ],
  
  owner:[
    { required: true, message: '请输入所属人名称', trigger: 'blur' },
  ],
  volume:[
    { required: true, message: '请输入车辆长度', trigger: 'blur' },
    {pattern:/^\+?[1-9][0-9]*$/, message: "请输入1-6位正整数", trigger: "blur" },
    {min:1,max:6, message: "请输入1-6位正确数字", trigger: "blur" }
  ],
  licensecolor:[
    { required: true, message: '请选择车辆颜色', trigger: 'change' },
  ],
  
  total_weight:[
    // { required: true, message: '请输入总质量', trigger: 'blur' },
    {pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入正确数字", trigger: "blur" },
  ],

  curb_weight:[
    // { required: true, message: '请输入整备质量', trigger: 'blur' },
    {pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入正确数字", trigger: "blur" },
  ],

  verification_weight:[
    {pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入正确数字", trigger: "blur" },
  ],
  tow_weight:[
    // { required: true, message: '请输入准牵引总质量', trigger: 'blur' },
    {pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入正确数字", trigger: "blur" },
  ],

  identify:[
    { required: true, message: '请输入车辆识别码', trigger: 'blur' },
    {pattern: /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{17}$/ , message: "请输入17位由数字字母组合的字符", trigger: "blur" },
  ],
  type:[
    { required: true, message: '请选择车辆类型', trigger: 'change' },
  ],
  nature:[
    { required: true, message: '请选择车辆使用性质', trigger: 'change' },
  ],
  energy_type:[
    { required: true, message: '请选择能源类型', trigger: 'change' },
  ],
  'truck_certificates_vo.office':[
    { required: true, message: '请输入发证机关', trigger: 'blur' },
  ],
  'truck_certificates_vo.release_time':[
    { required: true, message: '请选择发证日期', trigger: 'change' },
  ],
  'truck_certificates_vo.reg_time':[
    { required: true, message: '请选择注册日期', trigger: 'change' },
  ],
  'truck_certificates_vo.driving_main_pic':[
    { required: true, message: '请输入上传驾驶证主页图片', trigger: 'blur' },
  ],
  'truck_certificates_vo.driving_sub_pic':[
    { required: true, message: '请输入上传驾驶证副页图片', trigger: 'change' },
  ],
  'truck_certificates_vo.transport_num':[
    { required: true, message: '请输入道路运输证号', trigger: 'blur' },
  ],
  'truck_certificates_vo.transport_valid_time':[
    { required: true, message: '请选择道路运输证有效期', trigger: 'change' },
  ],
  'truck_certificates_vo.transport_pic':[
    { required: true, message: '请上传道路运输证', trigger: 'blur' },
  ]
  

}
